package com.xinlianshiye.im.response

import com.fasterxml.jackson.annotation.JsonFormat
import com.xinlianshiye.im.bean.User
import java.util.*

/**
 * @Author zw
 * @Description  用户聊天列表 显示好友聊天已读未读和 未读还有几条信息
 * @Date 9:11 2019/8/15
 * @Param
 */
class UserRecordlist {
    var id: Int? = null
    var content: String? = null
    // 消息类型 文字图片 语言
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    var created: Date? = null
    var type: Int? = null
    var fromId: Int? = null
    var toId: Int? = null
    var to: User? = null
    //是否已经读取过，true代表读取过，false代表未读
    var state: Boolean? = null
    // 判断是否是接受者 还是发送者 true 代表发送者 false代表接受者
    var issend: Boolean? = null
    // 未读还有几条信息
    var noreadcount: Int? = null
    var existsfriends: Boolean? = null
}